package com.buba.personnel.controller;

import com.buba.personnel.service.UserStateService;
import com.buba.pojo.UserState;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserStateController {
    @Autowired
    private UserStateService userStateService;

    /**
     * 查询员工状态
     * @return
     */
    @RequestMapping("/selUserState")
    public List<UserState> selUserState(){
        return userStateService.selUserState();
    }
}
